package com.app.web.goods.category;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Description
 * Created by 王伟
 * Date create on 11:22 2019/11/25.
 */
@Service
public class CategoryService {
    @Autowired
    private CategoryDao categoryDao;

    public List<Category> categoryList(int level,int pid){
        Map<String,Object> param = new HashMap<>();
        param.put("level",level);
        param.put("pid",pid);
        return categoryDao.categoryList(param);
    }
}
